<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>

<div class="table" > 
    <table class="listing form" cellpadding="0" cellspacing="0" > 
        <img src="${pageContext.request.contextPath}/backend/img/bg-th-left.gif" width="8" height="7" alt="" class="left">
        <img src="${pageContext.request.contextPath}/backend/img/bg-th-right.gif" width="7" height="7" alt="" class="right">

        <tbody>
            <tr><th class="full" colspan="5"><f:message key="${param.header}" /> <f:message key="moduleNames.fourth_variant.reservations" /></th></tr>                         
        <tr>
            <s:useActionBean id="custActionBean" beanclass="cz.muni.fi.pa165.bookingmanager.web.CustomerActionBean"/>
            <td class="first"><strong><s:label for="r1" name="entities.reservation.customers"/></strong></td>
            <td class="last"><s:select multiple="true" id="r1" name="customerList">
                <s:options-collection collection="${custActionBean.getCustomers()}" value="id"/>
                </s:select></td>
        </tr>
        <tr class="bg">
            <td class="first"><strong><s:label for="r2" name="entities.reservation.start_date"/></strong></td>
            <td class="last"><s:text size="40" id="datepicker" name="date" formatType="date" formatPattern="MM/dd/yyyy"/></td>
        </tr>
        <tr>
            <td class="first"><strong><s:label for="r3" name="entities.reservation.duration"/></strong></td>
            <td class="last"><s:text size="40" id="r3" name="reservation.duration"/></td>
        </tr>
        <s:useActionBean beanclass="cz.muni.fi.pa165.bookingmanager.web.RoomActionBean" var="b"/>
           
        </tr>       
        <tr class="bg">            
            <td class="first"><strong><s:label for="r5" name="entities.reservation.room"/></strong></td>
            <td class="last"><s:select  id="r5" name="roomID" >
                    <s:options-collection collection="${b.findAllHotelRooms(actionBean.context.hotel)}" label="roomNumber" value="id"/>
                </s:select></td>
        </tr>        
        <tr>
            <td class="first"><strong><s:label for="r6" name="entities.reservation.PAID"/></strong></td>
            <td class="last"><s:select id="r6" name="reservation.paid">
                    <s:options-enumeration enum="cz.muni.fi.pa165.bookingmanager.other.PaymentStatusEnum"  />
                </s:select></td>
        </tr>
    </tbody>
 </table>
</div> 
<s:errors/>